<?php echo $this->render('header.phtml'); ?>
<?php echo $this->render('menu.phtml'); ?>
<div id="content">
    <div id="icon-user" class="icon32"><br/></div><h2>编辑用户</h2>
    <table class="list-table">
        <thead class="ui-state-default">
            <tr>
                <th width="10%">ID</th>
                <th width="10%">用户名</th>
                <th width="10%">昵称</th>
                <th width="20%">邮箱</th>
                <th width="20%">注册时间</th>
                <th width="20%">最后登录时间</th>
                <th width="10%">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php if (count($this->userList)) : ?>
            <?php foreach ($this->userList as $user) : ?>
            <tr>
                <td><?php echo $this->escape($user->userId) ?></td>
                <td><?php echo $this->escape($user->username) ?></td>
                <td><?php echo $this->escape($user->nickname) ?></td>
                <td><?php echo $this->escape($user->email) ?></td>
                <td><?php echo $this->escape($user->registerTime) ?></td>
                <td><?php echo $this->escape($user->lastLoginTime) ?></td>
                <td>
                    <a href="/edit/user/id/<?php echo $this->escape($user->userId) ?>">编辑</a> |
                    <a href="/del/user/id/<?php echo $this->escape($user->userId) ?>">删除</a>
                </td>
            </tr>
            <?php endforeach; ?>
            <?php endif; ?>
        </tbody>
        <tfoot class="ui-state-default">
            <tr>
                <th width="10%">ID</th>
                <th width="10%">用户名</th>
                <th width="10%">昵称</th>
                <th width="20%">邮箱</th>
                <th width="20%">注册时间</th>
                <th width="20%">最后登录时间</th>
                <th width="10%">操作</th>
            </tr>
        </tfoot>
    </table>
    <?php echo $this->paginationControl($this->userList,'Elastic','pagebar.phtml'); ?>
</div>
<?php echo $this->render('footer.phtml'); ?>